﻿@model IEnumerable<RRHH.RRHH_Service.BEPersonal>

@{
    ViewBag.Title = "ListadoPersonal";
}


<link href="@Url.Content("~/Content/css.css")" rel="stylesheet" type="text/css" />


<h2>Listado de Personal</h2>

<p>
    @Html.JQueryUI().ActionButton("REGISTRA EMPLEADO", "Create") 
</p>
<table class="tbempleado">
    <tr class="headerStyle" style="background-color:#507CD1;color:#FFFFFF">
        <th>
           ID Personal
        </th>
        <th>
           Nombre de Empleado
        </th>
        <th>
           Apellido Paterno
        </th>
        <th>
           Apellido Materno
        </th>
        <th>
           Fecha de Nacimiento
        </th>
        <th>
           Direccion
        </th>
@*        <th>
            @Html.DisplayNameFor(model => model.IDESTADOCIVIL)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FLAGSEXO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IDDEPDOMICILIO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IDPROVDOMICILIO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IDDISTDOMICILIO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EMAIL)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IDDOCIDENTIDAD)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NUMERODOCUMENTO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FLAGESTADO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ANULADO)
        </th>*@
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.IDPERSONAL)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NOMBRESEMPLEADO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.APEPATERNOEMPLEADO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.APEMATERNOEMPLEADO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FECHANACIMIENTO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DIRECCIONEMPLEADO)
        </td>
@*        <td>
            @Html.DisplayFor(modelItem => item.IDESTADOCIVIL)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FLAGSEXO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IDDEPDOMICILIO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IDPROVDOMICILIO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IDDISTDOMICILIO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EMAIL)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IDDOCIDENTIDAD)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NUMERODOCUMENTO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FLAGESTADO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ANULADO)
        </td>*@
        <td>

           <a href="@Url.Action("Edit","PersonalEF", new {id=item.IDPERSONAL})" >
                <img src="../../Images/fichapersonal.png" style="max-width:25px;border:0px;" title="Editar" />
           </a>

            <a href="@Url.Action("Details", "PersonalEF", new { id = item.IDPERSONAL })" >
                <img src="../../Images/fichaSocial.png" style="max-width:25px;" title="Consultar" />
           </a>

          <a href="@Url.Action("Delete", "PersonalEF", new { id = item.IDPERSONAL })" >
                <img src="../../Images/delete2.png" style="max-width:25px;" title="Eliminar" />
           </a>

           <a href="@Url.Action("ListadoMaestroPersonal", "MaestroPersonalEF", new { id = item.IDPERSONAL })" >
                <img src="../../Images/book.png" style="max-width:25px;" title="Ver Planilla" />
           </a>
            
@*            @Html.ActionLink("Editar", "Edit", new { id=item.IDPERSONAL }) |
            @Html.ActionLink("Details", "Details", new { id = item.IDPERSONAL }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.IDPERSONAL })|
            @Html.ActionLink("Planilla", "ListadoMaestroPersonal", "MaestroPersonalEF")*@
        </td>
    </tr>
}

</table>
